<ul id="${id}" name="${id}" style="padding: 0;width: 100%;font-size: 16px">
    @for(item in list){
    <li value="${item.customerId}"
        style="width: 80%;background-color: #f0eccf;box-shadow: 5px 5px 10px #888888;margin-bottom: 20px">
        <p style="background-color: palegreen;font-weight: bold;padding-left: 10px"
           value="${item.operationTime}">${item.operationTime}</p>
        <div value="${item.operationTime}">999</div>
    </li>
    <script>
        $.ajax({
            url: Feng.ctxPath + "/doctorLooked/changePriceTable",
            type: "post",
            data: {
                "operationTime": $("p[value='${item.operationTime}']").text(),
                "customerId": $("#customerId").val(),
                "reservationsId": $("#reservationsId").val(),
            },
            success: function (data) {
                console.log(data);
                var ss = "";
                var s2 = "";
                for (var i = 0; i < data.length; i++) {
                    ss += ' <div class="data_row" style="margin-top: 5px">' +
                        '                <div style=\"padding-left: 10px;width: 120px;display: inline-block;\">\n' +
                        '                    <div style=\"border-bottom: 1px solid;\">\n' +
                        '                        <div style=\"font-size: 12px;display: inline-block;width:55px;border-right: 1px solid black;text-align: right\" id=\"yw_left_top\">' + data[i].leftUp + '</div><!--\n' +
                        '                         --><div style=\"font-size: 12px;display: inline-block;width:55px;\" id=\"yw_right_top\">'+data[i].rightUp+'</div>\n' +
                        '                   </div>\n' +
                        '                    <div>\n' +
                        '                        <div style=\"font-size: 12px;display: inline-block;width:55px;border-right: 1px solid black;text-align: right\" id=\"yw_left_bottom\">' + data[i].leftDown + '</div><!--\n' +
                        '                         --><div style=\"font-size: 12px;display: inline-block;width:55px;\" id=\"yw_right_top\">'+data[i].rightDown+'</div>\n' +
                        '                   </div>\n' +
                        '                </div>\n' +
                        '' + data[i].department + '&nbsp&nbsp' + data[i].firstLevelProject + '&nbsp&nbsp' + data[i].payServiceName + '&nbsp&nbsp' + data[i].payServiceNum + '&nbsp&nbsp<span style="font-weight: bold;font-size: 18px">' + data[i].payService.toFixed(2) + '</span>元' +
                        '</div>';
                }
                var s1 = ' <div class="rows">&nbsp&nbsp折后总金额：<span style="font-weight: bold;font-size: 18px">' + data[data.length - 1].totleFoldingPay.toFixed(2) + '</span>元&nbsp&nbsp成交状态：' + data[data.length - 1].dealStatus + '';
                if ((data[data.length - 1].dealStatus) == "已开单" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                    s1 += ' <a href=\'javascript:;\' onclick=\'toVoid("' + data[data.length - 1].customerId + '","' + data[data.length - 1].reservationsId + '","' + data[data.length - 1].operationTime + '")\'>&nbsp&nbsp作废</a></div>';
                } else if ((data[data.length - 1].dealStatus) == "已成交" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                    s1 += ' &nbsp&nbsp付款 <span style="font-weight: bold;font-size: 18px">' + data[data.length - 1].totleServiceActualPay + '</span>元&nbsp&nbsp欠款 <span style="font-weight: bold;font-size: 18px">' + data[data.length - 1].accountArrears + '</span>元';
                    s1 += ' <a href=\'javascript:;\' onclick=\'toRefund("' + data[data.length - 1].customerId + '","' + data[data.length - 1].reservationsId + '","' + data[data.length - 1].operationTime + '")\'>&nbsp&nbsp退款</a></div>';
                } else if ((data[data.length - 1].dealStatus) == "未成交" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                    s1 = '  &nbsp&nbsp未成交原因 ' + data[data.length - 1].noDealCause + '</div>';
                } else if ((data[data.length - 1].dealStatus) == "作废" && (data[data.length - 1].reservationsId) == $("#reservationsId").val()) {
                    s1 = ' &nbsp&nbsp作废原因 ' + data[data.length - 1].toVoidCause + '</div>';
                }
                $("div[value='${item.operationTime}']").html(s1 + ss + s2 + '<div> &nbsp&nbsp门诊：' + data[data.length - 1].outpatientName + '&nbsp病历号： ${consultantInfo.medicalRecordNumber}&nbsp ' +
                    '姓名：${consultantInfo.customerName}&nbsp 性别：${consultantInfo.sex}  &nbsp年龄：${consultantInfo.customerAge}&nbsp电话：${consultantInfo.customerPhone}&nbsp现场TC：${consultantInfo.fieldTc} &nbsp医生:' + data[data.length - 1].doctor +  '</div>');
            },
            error: function (data) {
                alert('内部故障!');
            }
        });
    </script>
    @}
</ul>
@if(isNotEmpty(underline) && underline == 'true'){
<div class="hr-line-dashed"></div>
@}


